-
Home
-
Advanced Dynamic Pricing for WooCommerce
-
4.0.2
-
Code
-
Classes
- PersistentRuleRepository
Total Complexity |
62 |
Dependencies |
16 |
Dependents |
8 |
Total lines |
435 |
Lines of code |
270 |
Logical lines of code |
163 |
Comment lines |
63 |
Methods |
16 |
Properties |
1 |
Methods 16
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
calculateCacheForProductWithRule() |
A |
43 |
11 |
51 |
getAddRuleData() |
A |
42 |
9 |
50 |
calculate() |
A |
44 |
9 |
43 |
getRulesFromWcCart() |
S |
54 |
6 |
20 |
recalculateCacheForProduct() |
S |
51 |
5 |
24 |
calculateDbHashWithProduct() |
S |
61 |
4 |
12 |
addRule() |
S |
60 |
3 |
13 |
getCache() |
S |
64 |
3 |
10 |
getCacheWithProduct() |
S |
64 |
3 |
10 |
calculateDbHash() |
S |
61 |
2 |
13 |
calculateCacheHash() |
S |
77 |
2 |
3 |
__construct() |
S |
80 |
1 |
3 |
withContext() |
S |
81 |
1 |
3 |
removeRule() |
S |
70 |
1 |
6 |
truncate() |
S |
72 |
1 |
5 |
calculateCacheHashWithProduct() |
S |
75 |
1 |
4 |